-- card: 5752 from stack: in -- bmap block id: 8210 -- flags: 0000 -- background id: 3493 -- name: left -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=88 top=211 right=233 bottom=188 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: LEFT ----- HyperTalk script ----- on mouseUp put editString("LEFT", field A,cd fld num) into field B end mouseUp -- part 2 (field) -- low flags: 00 -- high flags: 0002 -- rect: left=296 top=214 right=231 bottom=327 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 97 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: num -- part contents for background part 2 ----- text ----- LEFT will return a substring portion of left side of an input string. The function acts just like the BASIC language LEFT$ function. This function is limited to strings only and will ignore any characters past position 255. -- part contents for background part 1 ----- text ----- LEFT -- part contents for background part 3 ----- text ----- editString("LEFT", source, numChars) • source is the intput variable or field containing the text • numChars is the length of the desired substring put editString("LEFT", field A, 3) into field B If field A is "abcdefg" the function will return "abc" -- part contents for card part 2 ----- text ----- 3 -- part contents for background part 4 ----- text ----- abcdefg -- part contents for background part 5 ----- text ----- abc